import request from "@/utils/request";
// 获取文章列表
export function getArticlekApi(params) {
  return request.get(`/article/page`, { params }, { noAuth: true });
}

//获取文章详情
export function getArticleDetailApi(id) {
  return request.get(`/article/info/${id}`, {}, { noAuth: true });
}

//文章点赞
export function articleLikeApi(params) {
  return request.post(`/article/like`, params);
}
//文章收藏
export function articleCollectApi(params) {
  return request.post(`/article/collect`, params);
}
